{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "initial_id",
   "metadata": {
    "collapsed": true,
    "ExecuteTime": {
     "end_time": "2024-02-20T06:21:19.734591Z",
     "start_time": "2024-02-20T06:21:19.730070Z"
    }
   },
   "outputs": [
    {
     "data": {
      "text/plain": "4304083120"
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#变量命名规范\n",
    "var1 = 123\n",
    "var2 = 456\n",
    "id(var1)"
   ]
  },
  {
   "cell_type": "code",
   "outputs": [
    {
     "data": {
      "text/plain": "4351327376"
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "id(var2)"
   ],
   "metadata": {
    "collapsed": false,
    "ExecuteTime": {
     "end_time": "2024-02-20T06:21:23.529362Z",
     "start_time": "2024-02-20T06:21:23.523540Z"
    }
   },
   "id": "3ba028fd23891a7d",
   "execution_count": 4
  },
  {
   "cell_type": "code",
   "outputs": [],
   "source": [
    "# 以下的变量哪些是好的变量名，哪些是不好的变量名\n",
    "# 可以 error_number\n",
    "# 变量含义不清晰   e_n\n",
    "# 变量含义不清晰 er\n",
    "# 变量不能以数字开头 4dm1n\n",
    "# 变量不建议小写l和数字1混合一起命名 all100\n",
    "# python保留字是不能拿来做变量名的 if for def\n",
    "# 含义过长不好理解 create_a_database_from_file_in_HardDisk\n",
    "# 全是大写字母 NUMBER1"
   ],
   "metadata": {
    "collapsed": false
   },
   "id": "2e6e2b78d6b3ac5c"
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 2
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython2",
   "version": "2.7.6"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
